package com.zhiche.lisa.bms.pojo.vo.driver;

import com.zhiche.lisa.core.utils.RegexUtil;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.hibernate.validator.constraints.NotBlank;

import javax.validation.constraints.Pattern;
import javax.validation.constraints.Size;
import java.math.BigDecimal;
import java.util.Date;

/**
 * @FileName: cn.huiyunche.driver.service.form
 * @Description: 燃油类型表单
 * @author: Aaron
 * @date: 2017/2/26 下午5:02
 */
@Data
@ApiModel(value = "FuelTypeVO", description = "燃油类型VO")
public class FuelTypeVO {

	@ApiModelProperty(value = "id", name = "id", dataType = "Integer", example = "1")
	private Integer id;

	/**
	 * 燃油编码
	 */
	@NotBlank(message = "燃油编码不能为空")
	@Pattern(regexp = RegexUtil.letter_number, message = "燃油编码只能输入数字或字母")
	@Size(max = 32, min = 1, message = "燃油编码长度位1-32位")
	@ApiModelProperty(value = "燃油编码", name = "fuelCode", dataType = "String", example = "1")
	private String fuelCode;

	/**
	 * 燃油名称
	 */
	@NotBlank(message = "燃油名称不能为空")
	@Size(max = 16, min = 1, message = "燃油编码长度位1-16位")
	@ApiModelProperty(value = "燃油编码", name = "fuelCode", dataType = "String")
	private String fuelName;

	/**
	 * 基础油价
	 */
	@ApiModelProperty(value = "基础油价", name = "basePrice", dataType = "BigDecimal")
	private BigDecimal basePrice;

	@ApiModelProperty(value = "创建时间", name = "createTime", dataType = "Date")
	private Date createTime;

	@ApiModelProperty(value = "创建人", name = "creator", dataType = "Date")
	private String creator;

	@ApiModelProperty(value = "更新时间", name = "updateTime", dataType = "Date")
	private Date updateTime;

}
